<!DOCTYPE html>
<html>
<head>
	<title><?= $this->fetch('titre_page')?></title>
	<?php
	echo $this->Html->meta('icon');
	echo $this->html->css('bootstrap.css');
	?>

		<?= $this->html->script('//code.jquery.com/jquery.js')?>
		<?= $this->html->script('bootstrap.min.js')?>
		<?= $this->html->script('jquery.ui.map.full.min.js')?>
		<?= $this->Html->script('http://maps.google.com/maps/api/js?sensor=false'); ?>
	
	</head>

<?php 
//css barre de menu:
echo $this->html->css('jquery.navgoco.css');
//echo $this->html->css('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js');
; ?>

</head>

<body>
	<!--Début barre de navigation-->
	<div class="container">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<nav class="navbar navbar-default" role="navigation">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="#">Tripic</a>
					</div>

					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li class="active">
								<?php echo $this->Html->link(__('Encyclopedia'), array(
									'controller' => 'Countries', 
									'action' => 'encyclopedia',
									'5285b31d-c2a4-4d5f-89cc-050c2f28eab3')); ?>
							</li>
							<li>
								<?php echo $this->Html->link(__('Map'), array('controller' => 'Maps', 'action' => 'index')); ?>
							</li>
							<li>
								<a href="#"><?php echo __('Pictures'); ?></a>
							</li>
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo __('Language'); ?><strong class="caret"></strong></a>
								<ul class="dropdown-menu">
									<li>
										<?php echo $this->Html->link(__('Français', true), array(
											'controller' => 'App',
											'action' => 'changeLanguageTo',
											'fra'
											)); ?>
										</li>
										<li>
											<?php echo $this->Html->link(__('English', true), array(
												'controller' => 'App',
												'action' => 'changeLanguageTo',
												'eng'
												)); ?>
											</li>
											<li class="divider">
											</li>
											<li>
												<a href="#">Separated link</a>
											</li>
											<li class="divider">
											</li>
											<li>
												<a href="#">One more separated link</a>
											</li>
										</ul>
									</li>
								</ul>
								<form class="navbar-form navbar-left" role="search">
									<div class="form-group">
										<input type="text" class="form-control" />
									</div> <button type="submit" class="btn btn-default"><?php echo __('Submit'); ?></button>
								</form>
								<ul class="nav navbar-nav navbar-right">
									<li>
										<a href="#"><?php echo __('Link'); ?></a>
									</li>
									<li class="dropdown">
										<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo __('Dropdown'); ?><strong class="caret"></strong></a>
										<ul class="dropdown-menu">
											<li>
												<a href="#">Action</a>
											</li>
											<li>
												<a href="#">Another action</a>
											</li>
											<li>
												<a href="#">Something else here</a>
											</li>
											<li class="divider">
											</li>
											<li>
												<a href="#">Separated link</a>
											</li>
										</ul>
									</li>
								</ul>
							</div>

						</nav>
					</div>
				</div>
			</div>
			<!--Fin barre de navigation-->

			<div class="container">

				<?= $this->fetch('content')?>
				<?= $this->Session->flash(); ?>

			</div>

		</div>

		<div id="footer">

		</div>

	</body>
</html>
